.class public Lcom/estrongs/android/pop/app/PopVideoPlayer;
.super Lcom/estrongs/android/pop/esclasses/ESActivity;
.source "PopVideoPlayer.java"

# interfaces
.implements Les/hz;
.implements Lcom/estrongs/android/pop/esclasses/ESVideoController$b;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/pop/app/PopVideoPlayer$v;,
        Lcom/estrongs/android/pop/app/PopVideoPlayer$u;
    }
.end annotation


# static fields
.field private static final k0:Ljava/lang/String;


# instance fields
.field private A:I

.field private B:Lcom/estrongs/android/pop/app/videoeditor/k;

.field private C:Ljava/lang/String;

.field private final D:Landroid/content/BroadcastReceiver;

.field E:Z

.field private final F:Landroid/content/BroadcastReceiver;

.field private final G:Landroid/content/BroadcastReceiver;

.field private H:Z

.field private I:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Landroid/net/Uri;",
            ">;"
        }
    .end annotation
.end field

.field private J:Les/gz;

.field private K:Les/zy;

.field private L:Les/v00;

.field private M:Les/v00;

.field private N:Les/v00;

.field private O:Z

.field P:Z

.field Q:Z

.field R:Z

.field S:Lcom/estrongs/android/pop/app/y;

.field T:Ljava/lang/Boolean;

.field private U:Ljava/lang/Object;

.field V:Z

.field private W:Les/gz;

.field private X:Les/zy;

.field private Y:Les/v00;

.field private Z:Les/v00;

.field private d:Landroid/os/Handler;
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "HandlerLeak"
        }
    .end annotation
.end field

.field private e:Lcom/estrongs/fs/f;

.field private f:Lcom/estrongs/android/ui/view/ESVideoView;

.field private g:Z

.field private h:Landroid/widget/FrameLayout;

.field private i:Lcom/estrongs/android/pop/esclasses/ESVideoController;

.field private i0:Landroid/graphics/Rect;

.field private j:Lcom/estrongs/android/pop/esclasses/j;

.field private j0:I

.field private k:Lcom/estrongs/android/pop/app/PopVideoPlayer$u;

.field private l:I

.field private m:Landroid/net/Uri;

.field private n:Ljava/lang/String;

.field private o:Z

.field private p:Landroid/content/BroadcastReceiver;

.field private q:Landroid/view/View;

.field private r:I

.field private s:Lcom/estrongs/chromecast/ChromeCastManager;

.field private t:Lcom/estrongs/chromecast/ChromeCastDialog;

.field private u:Landroid/widget/TextView;

.field private v:Z

.field private w:Z

.field private x:J

.field private y:J

.field private z:I


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    const-class v0, Lcom/estrongs/android/pop/app/PopVideoPlayer;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->k0:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>()V
    .locals 5

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;-><init>()V

    .line 2
    new-instance v0, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer$k;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->d:Landroid/os/Handler;

    .line 3
    invoke-static {p0}, Lcom/estrongs/fs/f;->a(Landroid/content/Context;)Lcom/estrongs/fs/f;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->e:Lcom/estrongs/fs/f;

    const/4 v0, 0x0

    .line 4
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->g:Z

    .line 5
    iput v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->l:I

    const/4 v1, 0x0

    .line 6
    iput-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->m:Landroid/net/Uri;

    .line 7
    iput-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->n:Ljava/lang/String;

    .line 8
    iput-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->p:Landroid/content/BroadcastReceiver;

    .line 9
    iput v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->r:I

    .line 10
    invoke-static {}, Lcom/estrongs/chromecast/ChromeCastManager;->getInstance()Lcom/estrongs/chromecast/ChromeCastManager;

    move-result-object v2

    iput-object v2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->s:Lcom/estrongs/chromecast/ChromeCastManager;

    .line 11
    iput-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->t:Lcom/estrongs/chromecast/ChromeCastDialog;

    .line 12
    iput-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->u:Landroid/widget/TextView;

    .line 13
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->v:Z

    const/4 v2, 0x1

    .line 14
    iput-boolean v2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->w:Z

    const-wide/16 v3, 0x0

    .line 15
    iput-wide v3, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->x:J

    .line 16
    iput-wide v3, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->y:J

    .line 17
    new-instance v3, Lcom/estrongs/android/pop/app/PopVideoPlayer$o;

    invoke-direct {v3, p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer$o;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    iput-object v3, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->D:Landroid/content/BroadcastReceiver;

    .line 18
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->E:Z

    .line 19
    new-instance v3, Lcom/estrongs/android/pop/app/PopVideoPlayer$p;

    invoke-direct {v3, p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer$p;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    iput-object v3, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->F:Landroid/content/BroadcastReceiver;

    .line 20
    new-instance v3, Lcom/estrongs/android/pop/app/PopVideoPlayer$q;

    invoke-direct {v3, p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer$q;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    iput-object v3, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->G:Landroid/content/BroadcastReceiver;

    .line 21
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->O:Z

    .line 22
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->P:Z

    .line 23
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->Q:Z

    .line 24
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->R:Z

    .line 25
    iput-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->S:Lcom/estrongs/android/pop/app/y;

    .line 26
    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->T:Ljava/lang/Boolean;

    .line 27
    new-instance v0, Ljava/lang/Object;

    invoke-direct {v0}, Ljava/lang/Object;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->U:Ljava/lang/Object;

    .line 28
    iput-boolean v2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->V:Z

    return-void
.end method

.method static synthetic A(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Landroid/view/View;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->q:Landroid/view/View;

    return-object p0
.end method

.method static synthetic B(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Lcom/estrongs/android/pop/esclasses/ESVideoController;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->i:Lcom/estrongs/android/pop/esclasses/ESVideoController;

    return-object p0
.end method

.method static synthetic C(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Landroid/os/Handler;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->d:Landroid/os/Handler;

    return-object p0
.end method

.method static synthetic D(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->W()V

    return-void
.end method

.method static synthetic E(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Lcom/estrongs/android/pop/esclasses/j;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->j:Lcom/estrongs/android/pop/esclasses/j;

    return-object p0
.end method

.method private declared-synchronized E()V
    .locals 2

    monitor-enter p0

    .line 2
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->S:Lcom/estrongs/android/pop/app/y;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->T:Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-nez v0, :cond_0

    goto :goto_1

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->U:Ljava/lang/Object;

    monitor-enter v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 4
    :try_start_1
    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->T:Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-eqz v1, :cond_2

    .line 5
    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->S:Lcom/estrongs/android/pop/app/y;

    invoke-virtual {v1}, Lcom/estrongs/android/pop/app/y;->a()Z

    move-result v1

    if-nez v1, :cond_1

    const/4 v1, 0x1

    goto :goto_0

    :cond_1
    const/4 v1, 0x0

    :goto_0
    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    iput-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->T:Ljava/lang/Boolean;

    .line 6
    :cond_2
    monitor-exit v0

    goto :goto_2

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :try_start_2
    throw v1
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    .line 7
    :cond_3
    :goto_1
    monitor-exit p0

    return-void

    :catchall_1
    move-exception v0

    monitor-exit p0

    throw v0

    .line 8
    :catch_0
    :goto_2
    monitor-exit p0

    return-void
.end method

.method private F()V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-direct {p0, v0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->f(Z)V

    return-void
.end method

.method private G()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->s:Lcom/estrongs/chromecast/ChromeCastManager;

    invoke-virtual {v0}, Lcom/estrongs/chromecast/ChromeCastManager;->isConnected()Z

    move-result v0

    if-nez v0, :cond_0

    .line 2
    sget-object v0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->k0:Ljava/lang/String;

    const-string v1, "changeToCastMode error, chromecast is not connected"

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    return-void

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->i:Lcom/estrongs/android/pop/esclasses/ESVideoController;

    if-eqz v0, :cond_1

    .line 4
    invoke-virtual {v0}, Lcom/estrongs/android/pop/esclasses/ESVideoController;->a()V

    .line 5
    :cond_1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->Q()V

    const/4 v0, 0x1

    .line 6
    iput v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->r:I

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->h:Landroid/widget/FrameLayout;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->j:Lcom/estrongs/android/pop/esclasses/j;

    if-nez v0, :cond_3

    .line 9
    new-instance v0, Lcom/estrongs/android/pop/app/PopVideoPlayer$r;

    invoke-direct {v0, p0, p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer$r;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;Landroid/content/Context;)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->j:Lcom/estrongs/android/pop/esclasses/j;

    .line 10
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->k:Lcom/estrongs/android/pop/app/PopVideoPlayer$u;

    if-nez v0, :cond_2

    .line 11
    new-instance v0, Lcom/estrongs/android/pop/app/PopVideoPlayer$u;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer$u;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->k:Lcom/estrongs/android/pop/app/PopVideoPlayer$u;

    .line 12
    iget-object v2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->s:Lcom/estrongs/chromecast/ChromeCastManager;

    invoke-virtual {v2, v0}, Lcom/estrongs/chromecast/ChromeCastManager;->addMediaPlayerListener(Lcom/estrongs/chromecast/RemoteMediaPlayerListener;)V

    .line 13
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->s:Lcom/estrongs/chromecast/ChromeCastManager;

    iget-object v2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->k:Lcom/estrongs/android/pop/app/PopVideoPlayer$u;

    invoke-virtual {v0, v2}, Lcom/estrongs/chromecast/ChromeCastManager;->addConnectionListener(Lcom/estrongs/chromecast/ChromeCastConnectionListener;)V

    .line 14
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->s:Lcom/estrongs/chromecast/ChromeCastManager;

    iget-object v2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->k:Lcom/estrongs/android/pop/app/PopVideoPlayer$u;

    invoke-virtual {v0, v2}, Lcom/estrongs/chromecast/ChromeCastManager;->addDeviceListener(Lcom/estrongs/chromecast/CastDeviceListener;)V

    .line 15
    :cond_2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->j:Lcom/estrongs/android/pop/esclasses/j;

    iget-object v2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->k:Lcom/estrongs/android/pop/app/PopVideoPlayer$u;

    invoke-virtual {v0, v2}, Lcom/estrongs/android/pop/esclasses/j;->setMediaPlayer(Landroid/widget/MediaController$MediaPlayerControl;)V

    .line 16
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->j:Lcom/estrongs/android/pop/esclasses/j;

    iget-object v2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->h:Landroid/widget/FrameLayout;

    invoke-virtual {v0, v2}, Lcom/estrongs/android/pop/esclasses/j;->setAnchorView(Landroid/view/View;)V

    .line 17
    :cond_3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->s:Lcom/estrongs/chromecast/ChromeCastManager;

    invoke-virtual {v0}, Lcom/estrongs/chromecast/ChromeCastManager;->getMediaPlayerState()I

    move-result v0

    if-lez v0, :cond_4

    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->s:Lcom/estrongs/chromecast/ChromeCastManager;

    .line 18
    invoke-virtual {v0}, Lcom/estrongs/chromecast/ChromeCastManager;->getMediaPlayerState()I

    move-result v0

    const/4 v2, 0x2

    if-eq v0, v2, :cond_4

    .line 19
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->q:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 20
    :cond_4
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->d:Landroid/os/Handler;

    const/4 v1, 0x5

    invoke-virtual {v0, v1}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v1

    const-wide/16 v2, 0x3e8

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    return-void
.end method

.method private H()V
    .locals 5

    const/4 v0, 0x0

    .line 1
    iput v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->r:I

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->j:Lcom/estrongs/android/pop/esclasses/j;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Lcom/estrongs/android/pop/esclasses/j;->a()V

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->h:Landroid/widget/FrameLayout;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->d:Landroid/os/Handler;

    const/4 v2, 0x4

    invoke-virtual {v0, v2}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v0

    .line 6
    iget-object v2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->d:Landroid/os/Handler;

    const-wide/16 v3, 0x64

    invoke-virtual {v2, v0, v3, v4}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    .line 7
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->R()V

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->q:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v0

    if-nez v0, :cond_1

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->q:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 10
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->d:Landroid/os/Handler;

    const/4 v1, 0x5

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    return-void
.end method

.method private I()V
    .locals 5

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->W:Les/gz;

    const/4 v1, 0x1

    if-nez v0, :cond_0

    .line 2
    new-instance v0, Lcom/estrongs/android/pop/app/PopVideoPlayer$h;

    invoke-direct {v0, p0, p0, v1, v1}, Lcom/estrongs/android/pop/app/PopVideoPlayer$h;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;Landroid/content/Context;ZZ)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->W:Les/gz;

    .line 3
    new-instance v0, Les/zy;

    invoke-direct {v0, p0, v1}, Les/zy;-><init>(Landroid/content/Context;Z)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->X:Les/zy;

    .line 4
    iget-object v2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->W:Les/gz;

    invoke-virtual {v2, v0}, Les/gz;->a(Les/zy;)V

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->W:Les/gz;

    iget-object v2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->X:Les/zy;

    invoke-virtual {v2}, Les/zy;->b()Landroid/view/View;

    move-result-object v2

    invoke-virtual {v0, v2}, Les/gz;->a(Landroid/view/View;)V

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->W:Les/gz;

    new-instance v2, Lcom/estrongs/android/pop/app/PopVideoPlayer$i;

    invoke-direct {v2, p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer$i;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    invoke-virtual {v0, v2}, Les/gz;->a(Les/gz$d;)V

    .line 7
    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->v()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    const v2, 0x7f0602dd

    invoke-virtual {v0, v2}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v0

    .line 8
    new-instance v2, Les/v00;

    .line 9
    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f08098e

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    .line 10
    invoke-static {v3, v0}, Les/fy;->a(Landroid/graphics/drawable/Drawable;I)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    const v4, 0x7f11003f

    .line 11
    invoke-virtual {p0, v4}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v2, v3, v4}, Les/v00;-><init>(Landroid/graphics/drawable/Drawable;Ljava/lang/String;)V

    new-instance v3, Lcom/estrongs/android/pop/app/PopVideoPlayer$j;

    invoke-direct {v3, p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer$j;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    invoke-virtual {v2, v3}, Les/v00;->setOnMenuItemClickListener(Landroid/view/MenuItem$OnMenuItemClickListener;)Les/v00;

    iput-object v2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->Y:Les/v00;

    .line 12
    new-instance v2, Les/v00;

    .line 13
    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f0809d9

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    .line 14
    invoke-static {v3, v0}, Les/fy;->a(Landroid/graphics/drawable/Drawable;I)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    const v4, 0x7f110071

    .line 15
    invoke-virtual {p0, v4}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v2, v3, v4}, Les/v00;-><init>(Landroid/graphics/drawable/Drawable;Ljava/lang/String;)V

    new-instance v3, Lcom/estrongs/android/pop/app/PopVideoPlayer$l;

    invoke-direct {v3, p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer$l;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    invoke-virtual {v2, v3}, Les/v00;->setOnMenuItemClickListener(Landroid/view/MenuItem$OnMenuItemClickListener;)Les/v00;

    iput-object v2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->Z:Les/v00;

    .line 16
    new-instance v2, Les/v00;

    .line 17
    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f080985

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    .line 18
    invoke-static {v3, v0}, Les/fy;->a(Landroid/graphics/drawable/Drawable;I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    const v3, 0x7f110232

    .line 19
    invoke-virtual {p0, v3}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v0, v3}, Les/v00;-><init>(Landroid/graphics/drawable/Drawable;Ljava/lang/String;)V

    new-instance v0, Lcom/estrongs/android/pop/app/PopVideoPlayer$m;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer$m;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    invoke-virtual {v2, v0}, Les/v00;->setOnMenuItemClickListener(Landroid/view/MenuItem$OnMenuItemClickListener;)Les/v00;

    iput-object v2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->L:Les/v00;

    .line 20
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->X:Les/zy;

    invoke-virtual {v0}, Les/zy;->a()Les/kz;

    move-result-object v0

    .line 21
    instance-of v2, v0, Les/cz;

    if-eqz v2, :cond_1

    .line 22
    move-object v2, v0

    check-cast v2, Les/cz;

    invoke-virtual {v2, v1}, Les/cz;->b(Z)V

    .line 23
    :cond_1
    invoke-virtual {v0}, Les/kz;->h()V

    .line 24
    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->m:Landroid/net/Uri;

    invoke-static {p0, v1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->b(Landroid/content/Context;Landroid/net/Uri;)Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_2

    .line 25
    iget-object v2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->m:Landroid/net/Uri;

    invoke-virtual {v2}, Landroid/net/Uri;->getScheme()Ljava/lang/String;

    move-result-object v2

    const-string v3, "http"

    invoke-virtual {v3, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_2

    .line 26
    iget-object v2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->Z:Les/v00;

    invoke-virtual {v0, v2}, Les/kz;->a(Les/v00;)V

    goto :goto_0

    .line 27
    :cond_2
    iget-object v2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->m:Landroid/net/Uri;

    invoke-static {v2}, Lcom/estrongs/android/pop/app/FileContentProvider;->c(Landroid/net/Uri;)Z

    move-result v2

    if-eqz v2, :cond_3

    .line 28
    iget-object v2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->Z:Les/v00;

    invoke-virtual {v0, v2}, Les/kz;->a(Les/v00;)V

    :cond_3
    :goto_0
    if-eqz v1, :cond_4

    .line 29
    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->Y:Les/v00;

    invoke-virtual {v0, v1}, Les/kz;->a(Les/v00;)V

    .line 30
    :cond_4
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->B()Z

    move-result v1

    if-eqz v1, :cond_5

    .line 31
    invoke-static {}, Lcom/estrongs/chromecast/ChromeCastManager;->isSupport()Z

    move-result v1

    if-eqz v1, :cond_5

    .line 32
    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->L:Les/v00;

    invoke-virtual {v0, v1}, Les/kz;->a(Les/v00;)V

    .line 33
    :cond_5
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->W:Les/gz;

    invoke-virtual {v0}, Les/gz;->c()Z

    move-result v0

    if-nez v0, :cond_6

    .line 34
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->W:Les/gz;

    invoke-virtual {v0}, Les/gz;->d()V

    goto :goto_1

    .line 35
    :cond_6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->W:Les/gz;

    invoke-virtual {v0}, Les/gz;->a()V

    :goto_1
    return-void
.end method

.method private J()I
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->I:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->m:Landroid/net/Uri;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->indexOf(Ljava/lang/Object;)I

    move-result v0

    const/4 v1, -0x1

    if-ne v0, v1, :cond_1

    const/4 v1, 0x0

    .line 2
    :goto_0
    iget-object v2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->I:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-ge v1, v2, :cond_1

    .line 3
    iget-object v2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->I:Ljava/util/ArrayList;

    invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Landroid/net/Uri;

    invoke-static {p0, v2}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->b(Landroid/content/Context;Landroid/net/Uri;)Ljava/lang/String;

    move-result-object v2

    .line 4
    iget-object v3, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->n:Ljava/lang/String;

    invoke-static {v2, v3}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_0

    move v0, v1

    goto :goto_1

    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    :goto_1
    return v0
.end method

.method private K()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->t:Lcom/estrongs/chromecast/ChromeCastDialog;

    if-eqz v0, :cond_0

    return-void

    .line 2
    :cond_0
    new-instance v0, Lcom/estrongs/chromecast/ChromeCastDialog;

    invoke-direct {v0, p0}, Lcom/estrongs/chromecast/ChromeCastDialog;-><init>(Landroid/app/Activity;)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->t:Lcom/estrongs/chromecast/ChromeCastDialog;

    .line 3
    new-instance v1, Lcom/estrongs/android/pop/app/PopVideoPlayer$t;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer$t;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    invoke-virtual {v0, v1}, Lcom/estrongs/chromecast/ChromeCastDialog;->setChromeCastModeListener(Lcom/estrongs/android/pop/app/a0;)V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->t:Lcom/estrongs/chromecast/ChromeCastDialog;

    new-instance v1, Lcom/estrongs/android/pop/app/PopVideoPlayer$a;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer$a;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    invoke-virtual {v0, v1}, Landroid/app/Dialog;->setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)V

    return-void
.end method

.method private L()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->h:Landroid/widget/FrameLayout;

    new-instance v1, Lcom/estrongs/android/pop/app/s;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/s;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->i:Lcom/estrongs/android/pop/esclasses/ESVideoController;

    invoke-virtual {v0, p0}, Lcom/estrongs/android/pop/esclasses/ESVideoController;->setControllerListener(Lcom/estrongs/android/pop/esclasses/ESVideoController$b;)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->f:Lcom/estrongs/android/ui/view/ESVideoView;

    new-instance v1, Lcom/estrongs/android/pop/app/u;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/u;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/view/ESVideoView;->setOnCompletionListener(Landroid/media/MediaPlayer$OnCompletionListener;)V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->f:Lcom/estrongs/android/ui/view/ESVideoView;

    new-instance v1, Lcom/estrongs/android/pop/app/p;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/p;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/view/ESVideoView;->setOnErrorListener(Landroid/media/MediaPlayer$OnErrorListener;)V

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->f:Lcom/estrongs/android/ui/view/ESVideoView;

    new-instance v1, Lcom/estrongs/android/pop/app/o;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/o;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/view/ESVideoView;->setOnPreparedListener(Landroid/media/MediaPlayer$OnPreparedListener;)V

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->f:Lcom/estrongs/android/ui/view/ESVideoView;

    new-instance v1, Lcom/estrongs/android/pop/app/PopVideoPlayer$s;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer$s;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/view/ESVideoView;->setSeekListener(Lcom/estrongs/android/ui/view/ESVideoView$k;)V

    return-void
.end method

.method private M()V
    .locals 1

    .line 1
    new-instance v0, Lcom/estrongs/android/pop/app/q;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/q;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    invoke-static {v0}, Lcom/estrongs/android/util/o;->a(Ljava/lang/Runnable;)V

    return-void
.end method

.method private N()V
    .locals 2

    .line 1
    invoke-static {}, Lcom/estrongs/android/dlna/c;->g()Lcom/estrongs/android/dlna/c;

    move-result-object v0

    new-instance v1, Lcom/estrongs/android/pop/app/PopVideoPlayer$v;

    invoke-direct {v1, p0, p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer$v;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;Landroid/content/Context;)V

    invoke-virtual {v0, v1}, Lcom/estrongs/android/dlna/c;->a(Lcom/estrongs/dlna/render/player/b;)V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->n:Ljava/lang/String;

    if-eqz v0, :cond_0

    .line 3
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->S()V

    :cond_0
    return-void
.end method

.method private O()Z
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->J:Les/gz;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Les/gz;->c()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method private P()Z
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->W:Les/gz;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Les/gz;->c()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method private Q()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->f:Lcom/estrongs/android/ui/view/ESVideoView;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/view/ESVideoView;->getCurrentPosition()I

    move-result v0

    iput v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->l:I

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->d:Landroid/os/Handler;

    const/4 v1, 0x7

    invoke-virtual {v0, v1}, Landroid/os/Handler;->hasMessages(I)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->d:Landroid/os/Handler;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->d:Landroid/os/Handler;

    const/16 v1, 0x9

    invoke-virtual {v0, v1}, Landroid/os/Handler;->hasMessages(I)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->d:Landroid/os/Handler;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 6
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->q:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v0

    if-nez v0, :cond_2

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->q:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 8
    :cond_2
    new-instance v0, Lcom/estrongs/android/pop/app/PopVideoPlayer$g;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer$g;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    invoke-static {v0}, Lcom/estrongs/android/util/o;->a(Ljava/lang/Runnable;)V

    return-void
.end method

.method private R()V
    .locals 3

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->B()Z

    move-result v0

    if-nez v0, :cond_0

    .line 2
    invoke-static {}, Lcom/estrongs/android/ui/notification/b;->k()Lcom/estrongs/android/ui/notification/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/ui/notification/b;->a()V

    return-void

    .line 3
    :cond_0
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->P:Z

    const/4 v1, 0x0

    if-nez v0, :cond_3

    .line 4
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->Q:Z

    if-eqz v0, :cond_1

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->f:Lcom/estrongs/android/ui/view/ESVideoView;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/view/ESVideoView;->d()V

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->f:Lcom/estrongs/android/ui/view/ESVideoView;

    iget v2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->l:I

    invoke-virtual {v0, v2}, Lcom/estrongs/android/ui/view/ESVideoView;->seekTo(I)V

    .line 7
    iput-boolean v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->Q:Z

    .line 8
    iput v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->l:I

    goto :goto_0

    .line 9
    :cond_1
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->R:Z

    if-eqz v0, :cond_2

    .line 10
    iput v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->l:I

    .line 11
    iput-boolean v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->R:Z

    goto :goto_0

    .line 12
    :cond_2
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->Z()V

    goto :goto_0

    :cond_3
    if-eqz v0, :cond_4

    .line 13
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->Z()V

    .line 14
    iput v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->l:I

    .line 15
    iput-boolean v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->P:Z

    :cond_4
    :goto_0
    return-void
.end method

.method private S()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->n:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->t2(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    new-instance v0, Lcom/estrongs/android/pop/app/PopVideoPlayer$n;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer$n;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->p:Landroid/content/BroadcastReceiver;

    .line 3
    new-instance v0, Landroid/content/IntentFilter;

    invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V

    const-string v1, "android.hardware.usb.action.USB_DEVICE_DETACHED"

    .line 4
    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 5
    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->p:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v1, v0}, Landroid/app/Activity;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    return-void
.end method

.method private declared-synchronized T()V
    .locals 2

    monitor-enter p0

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->S:Lcom/estrongs/android/pop/app/y;

    if-nez v0, :cond_0

    .line 2
    new-instance v0, Lcom/estrongs/android/pop/app/y;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/estrongs/android/pop/app/y;-><init>(Landroid/content/Context;Lcom/estrongs/android/pop/app/AudioPlayerService;)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->S:Lcom/estrongs/android/pop/app/y;

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->U:Ljava/lang/Object;

    monitor-enter v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 4
    :try_start_1
    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->T:Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-nez v1, :cond_1

    .line 5
    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->S:Lcom/estrongs/android/pop/app/y;

    invoke-virtual {v1}, Lcom/estrongs/android/pop/app/y;->b()Z

    move-result v1

    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    iput-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->T:Ljava/lang/Boolean;

    .line 6
    :cond_1
    monitor-exit v0

    goto :goto_0

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :try_start_2
    throw v1
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    :catchall_1
    move-exception v0

    monitor-exit p0

    throw v0

    .line 7
    :catch_0
    :goto_0
    monitor-exit p0

    return-void
.end method

.method private U()V
    .locals 5

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->B()Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/l;->M1()Ljava/lang/String;

    move-result-object v0

    .line 3
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_0

    const-string v2, "#"

    .line 4
    invoke-virtual {v0, v2}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v2

    const/4 v3, -0x1

    if-eq v2, v3, :cond_0

    .line 5
    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v3

    .line 6
    iget-object v4, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->m:Landroid/net/Uri;

    if-eqz v4, :cond_0

    invoke-virtual {v4}, Landroid/net/Uri;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    add-int/lit8 v2, v2, 0x1

    .line 7
    invoke-virtual {v0, v2}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    .line 8
    invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->l:I

    return-void

    .line 9
    :cond_0
    iput v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->l:I

    return-void
.end method

.method private V()V
    .locals 2

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->B()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->m:Landroid/net/Uri;

    invoke-virtual {v1}, Landroid/net/Uri;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "#"

    .line 4
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 5
    iget v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->l:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    .line 6
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/pop/l;->r0(Ljava/lang/String;)V

    :cond_0
    return-void
.end method

.method private W()V
    .locals 1

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->B()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->h:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->getVisibility()I

    move-result v0

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->i:Lcom/estrongs/android/pop/esclasses/ESVideoController;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/esclasses/f;->f()V

    :cond_0
    return-void
.end method

.method private X()V
    .locals 4

    .line 1
    iget v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->A:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    :goto_0
    if-eqz v1, :cond_1

    return-void

    .line 2
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->B:Lcom/estrongs/android/pop/app/videoeditor/k;

    if-nez v0, :cond_2

    .line 3
    new-instance v0, Lcom/estrongs/android/pop/app/videoeditor/k;

    invoke-direct {v0}, Lcom/estrongs/android/pop/app/videoeditor/k;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->B:Lcom/estrongs/android/pop/app/videoeditor/k;

    .line 4
    :cond_2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->d:Landroid/os/Handler;

    new-instance v1, Lcom/estrongs/android/pop/app/m;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/m;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    const-wide/16 v2, 0x3e8

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    return-void
.end method

.method private Y()Z
    .locals 5

    const/4 v0, 0x0

    .line 1
    :try_start_0
    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->m:Landroid/net/Uri;

    invoke-virtual {v1}, Landroid/net/Uri;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/net/Uri;->decode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const-string v2, "http://"

    .line 2
    invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1

    const/4 v2, 0x7

    .line 3
    invoke-virtual {v1, v2}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v1

    const-string v2, "/"

    .line 4
    invoke-virtual {v1, v2}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v2

    if-lez v2, :cond_1

    .line 5
    invoke-virtual {v1, v0, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v3

    const-string v4, "127.0.0.1"

    .line 6
    invoke-virtual {v3, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_0

    return v0

    .line 7
    :cond_0
    invoke-virtual {v1, v2}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v1

    .line 8
    invoke-static {v1}, Lcom/estrongs/android/util/h0;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 9
    new-instance v2, Landroid/content/Intent;

    const-class v3, Lcom/estrongs/android/pop/app/StreamingMediaPlayer;

    invoke-direct {v2, p0, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const/high16 v3, 0x4000000

    .line 10
    invoke-virtual {v2, v3}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 11
    invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v1

    invoke-virtual {v2, v1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 12
    invoke-virtual {p0, v2}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const/4 v0, 0x1

    :catch_0
    :cond_1
    return v0
.end method

.method private Z()V
    .locals 5

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->T()V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->m:Landroid/net/Uri;

    .line 3
    :try_start_0
    invoke-virtual {v0}, Landroid/net/Uri;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v2, "smb://"

    invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 4
    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->f:Lcom/estrongs/android/ui/view/ESVideoView;

    invoke-virtual {v1, v0}, Lcom/estrongs/android/ui/view/ESVideoView;->setVideoURI(Landroid/net/Uri;)V

    .line 5
    new-instance v1, Ljava/net/URL;

    invoke-virtual {v0}, Landroid/net/Uri;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v1, v0}, Ljava/net/URL;-><init>(Ljava/lang/String;)V

    .line 6
    invoke-virtual {v1}, Ljava/net/URL;->openStream()Ljava/io/InputStream;

    move-result-object v0

    .line 7
    invoke-virtual {v0}, Ljava/io/InputStream;->close()V

    goto :goto_1

    .line 8
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->f:Lcom/estrongs/android/ui/view/ESVideoView;

    invoke-virtual {v0}, Landroid/view/SurfaceView;->requestFocus()Z

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->d:Landroid/os/Handler;

    const/4 v1, 0x2

    iget v2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->l:I

    iget-boolean v3, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->R:Z

    const/4 v4, 0x0

    if-eqz v3, :cond_1

    const/4 v3, 0x1

    goto :goto_0

    :cond_1
    const/4 v3, 0x0

    :goto_0
    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->obtainMessage(III)Landroid/os/Message;

    move-result-object v0

    .line 10
    iput-boolean v4, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->R:Z

    .line 11
    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->d:Landroid/os/Handler;

    const-wide/16 v2, 0x1f4

    invoke-virtual {v1, v0, v2, v3}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    :goto_1
    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/PopVideoPlayer;J)J
    .locals 0

    .line 2
    iput-wide p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->x:J

    return-wide p1
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Lcom/estrongs/android/ui/view/ESVideoView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->f:Lcom/estrongs/android/ui/view/ESVideoView;

    return-object p0
.end method

.method static synthetic a(Landroid/content/Context;Landroid/net/Uri;)Ljava/lang/String;
    .locals 0

    .line 4
    invoke-static {p0, p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->b(Landroid/content/Context;Landroid/net/Uri;)Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method private a(Landroid/content/Intent;)V
    .locals 1

    .line 20
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->G()V

    const-string v0, "ChromecastUrl"

    .line 21
    invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    if-eqz p1, :cond_0

    const/4 p1, 0x1

    .line 22
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->f(Z)V

    :cond_0
    return-void
.end method

.method private a(Landroid/net/Uri;)V
    .locals 2

    const-wide/16 v0, 0x0

    .line 5
    iput-wide v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->x:J

    .line 6
    iput-wide v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->y:J

    .line 7
    iput-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->m:Landroid/net/Uri;

    .line 8
    invoke-static {p0, p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->b(Landroid/content/Context;Landroid/net/Uri;)Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->n:Ljava/lang/String;

    if-eqz p1, :cond_0

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->i:Lcom/estrongs/android/pop/esclasses/ESVideoController;

    invoke-virtual {v0, p1}, Lcom/estrongs/android/pop/esclasses/ESVideoController;->a(Ljava/lang/String;)V

    .line 10
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->f:Lcom/estrongs/android/ui/view/ESVideoView;

    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->m:Landroid/net/Uri;

    invoke-virtual {p1, v0}, Lcom/estrongs/android/ui/view/ESVideoView;->setVideoURI(Landroid/net/Uri;)V

    .line 11
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->f:Lcom/estrongs/android/ui/view/ESVideoView;

    const/4 v0, 0x1

    invoke-virtual {p1, v0}, Landroid/view/SurfaceView;->setKeepScreenOn(Z)V

    .line 12
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->f:Lcom/estrongs/android/ui/view/ESVideoView;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Lcom/estrongs/android/ui/view/ESVideoView;->seekTo(I)V

    .line 13
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->f:Lcom/estrongs/android/ui/view/ESVideoView;

    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->i:Lcom/estrongs/android/pop/esclasses/ESVideoController;

    invoke-virtual {p1, v0}, Lcom/estrongs/android/ui/view/ESVideoView;->setMediaController(Lcom/estrongs/android/pop/esclasses/f;)V

    .line 14
    iget-boolean p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->H:Z

    if-eqz p1, :cond_1

    .line 15
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->a(Landroid/content/Intent;)V

    goto :goto_0

    .line 16
    :cond_1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->Z()V

    .line 17
    :goto_0
    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object p1

    iget p1, p1, Landroid/content/res/Configuration;->orientation:I

    iput p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->z:I

    .line 18
    iput p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->A:I

    .line 19
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->X()V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/PopVideoPlayer;Z)Z
    .locals 0

    .line 3
    iput-boolean p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->O:Z

    return p1
.end method

.method private declared-synchronized a0()V
    .locals 4

    monitor-enter p0

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->f:Lcom/estrongs/android/ui/view/ESVideoView;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/view/ESVideoView;->start()V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->f:Lcom/estrongs/android/ui/view/ESVideoView;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/view/SurfaceView;->setKeepScreenOn(Z)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->d:Landroid/os/Handler;

    const/16 v1, 0x9

    invoke-virtual {v0, v1}, Landroid/os/Handler;->hasMessages(I)Z

    move-result v0

    if-nez v0, :cond_0

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->d:Landroid/os/Handler;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v0

    .line 5
    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->d:Landroid/os/Handler;

    const-wide/16 v2, 0x3e8

    invoke-virtual {v1, v0, v2, v3}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 6
    :cond_0
    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method static synthetic b(Lcom/estrongs/android/pop/app/PopVideoPlayer;J)J
    .locals 0

    .line 2
    iput-wide p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->y:J

    return-wide p1
.end method

.method private static b(Landroid/content/Context;Landroid/net/Uri;)Ljava/lang/String;
    .locals 9
    .param p0    # Landroid/content/Context;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p1    # Landroid/net/Uri;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param
    .annotation build Landroidx/annotation/Nullable;
    .end annotation

    const/4 v0, 0x0

    if-nez p1, :cond_0

    return-object v0

    .line 9
    :cond_0
    invoke-virtual {p1}, Landroid/net/Uri;->getScheme()Ljava/lang/String;

    move-result-object v1

    const-string v2, "file"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 10
    invoke-virtual {p1}, Landroid/net/Uri;->getPath()Ljava/lang/String;

    move-result-object p0

    return-object p0

    .line 11
    :cond_1
    invoke-virtual {p1}, Landroid/net/Uri;->getScheme()Ljava/lang/String;

    move-result-object v1

    const-string v2, "http"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-virtual {p1}, Landroid/net/Uri;->getHost()Ljava/lang/String;

    move-result-object v1

    const-string v2, "127.0.0.1"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 12
    invoke-virtual {p1}, Landroid/net/Uri;->toString()Ljava/lang/String;

    move-result-object p0

    invoke-static {p0}, Landroid/net/Uri;->decode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    invoke-static {p0}, Lcom/estrongs/android/util/h0;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    return-object p0

    .line 13
    :cond_2
    invoke-static {p1}, Lcom/estrongs/android/pop/app/FileContentProvider;->a(Landroid/net/Uri;)Ljava/io/File;

    move-result-object v1

    if-eqz v1, :cond_3

    .line 14
    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object p0

    return-object p0

    :cond_3
    const/4 v1, 0x1

    :try_start_0
    new-array v4, v1, [Ljava/lang/String;

    const-string v1, "_data"

    const/4 v8, 0x0

    aput-object v1, v4, v8

    .line 15
    invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v2

    const/4 v5, 0x0

    const/4 v6, 0x0

    const/4 v7, 0x0

    move-object v3, p1

    invoke-virtual/range {v2 .. v7}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object p0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    if-eqz p0, :cond_4

    .line 16
    :try_start_1
    invoke-interface {p0}, Landroid/database/Cursor;->moveToFirst()Z

    move-result p1

    if-eqz p1, :cond_4

    .line 17
    invoke-interface {p0, v8}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object p1
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 18
    invoke-static {p0}, Lcom/estrongs/fs/util/f;->a(Landroid/database/Cursor;)V

    return-object p1

    :catchall_0
    move-exception p1

    move-object v0, p0

    goto :goto_0

    :catchall_1
    move-exception p1

    :goto_0
    invoke-static {v0}, Lcom/estrongs/fs/util/f;->a(Landroid/database/Cursor;)V

    .line 19
    throw p1

    :catch_0
    move-object p0, v0

    .line 20
    :catch_1
    :cond_4
    invoke-static {p0}, Lcom/estrongs/fs/util/f;->a(Landroid/database/Cursor;)V

    return-object v0
.end method

.method private b(Landroid/content/Intent;)V
    .locals 3

    .line 4
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v0

    const-string v1, "islocalopen"

    const/4 v2, 0x0

    .line 5
    invoke-virtual {p1, v1, v2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result p1

    if-nez p1, :cond_0

    const-string p1, "act3"

    const-string v1, "video_player"

    .line 6
    invoke-virtual {v0, p1, v1}, Lcom/estrongs/android/statistics/b;->b(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    return-void
.end method

.method static synthetic b(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->g:Z

    return p0
.end method

.method static synthetic b(Lcom/estrongs/android/pop/app/PopVideoPlayer;Z)Z
    .locals 0

    .line 3
    iput-boolean p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->w:Z

    return p1
.end method

.method private declared-synchronized b0()V
    .locals 2

    monitor-enter p0

    .line 1
    :try_start_0
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->E()V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->f:Lcom/estrongs/android/ui/view/ESVideoView;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/view/ESVideoView;->e()V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->f:Lcom/estrongs/android/ui/view/ESVideoView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/SurfaceView;->setKeepScreenOn(Z)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 4
    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method static synthetic c(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Lcom/estrongs/android/pop/app/PopVideoPlayer$u;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->k:Lcom/estrongs/android/pop/app/PopVideoPlayer$u;

    return-object p0
.end method

.method static synthetic c(Lcom/estrongs/android/pop/app/PopVideoPlayer;Z)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->f(Z)V

    return-void
.end method

.method private c0()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->n:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->t2(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->p:Landroid/content/BroadcastReceiver;

    if-eqz v0, :cond_1

    .line 3
    invoke-virtual {p0, v0}, Landroid/app/Activity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    :cond_1
    return-void
.end method

.method static synthetic d(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->d0()V

    return-void
.end method

.method static synthetic d(Lcom/estrongs/android/pop/app/PopVideoPlayer;Z)Z
    .locals 0

    .line 2
    iput-boolean p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->v:Z

    return p1
.end method

.method private d0()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->j:Lcom/estrongs/android/pop/esclasses/j;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->k:Lcom/estrongs/android/pop/app/PopVideoPlayer$u;

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/esclasses/j;->setMediaPlayer(Landroid/widget/MediaController$MediaPlayerControl;)V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->d:Landroid/os/Handler;

    const/4 v1, 0x5

    invoke-virtual {v0, v1}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v1

    const-wide/16 v2, 0x5dc

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    return-void
.end method

.method static synthetic e(Lcom/estrongs/android/pop/app/PopVideoPlayer;)J
    .locals 2

    .line 1
    iget-wide v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->x:J

    return-wide v0
.end method

.method static synthetic f(Lcom/estrongs/android/pop/app/PopVideoPlayer;)J
    .locals 2

    .line 1
    iget-wide v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->y:J

    return-wide v0
.end method

.method private f(Z)V
    .locals 6

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->s:Lcom/estrongs/chromecast/ChromeCastManager;

    invoke-virtual {v0}, Lcom/estrongs/chromecast/ChromeCastManager;->isConnected()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->B()Z

    move-result v0

    if-nez v0, :cond_0

    if-eqz p1, :cond_5

    .line 4
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->n:Ljava/lang/String;

    if-nez p1, :cond_1

    return-void

    .line 5
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->s:Lcom/estrongs/chromecast/ChromeCastManager;

    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->m:Landroid/net/Uri;

    invoke-virtual {p1}, Landroid/net/Uri;->getPath()Ljava/lang/String;

    move-result-object v1

    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->n:Ljava/lang/String;

    const/4 v2, 0x1

    .line 6
    invoke-static {p1, v2}, Lcom/estrongs/android/util/h0;->b(Ljava/lang/String;Z)Ljava/lang/String;

    move-result-object v2

    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->n:Ljava/lang/String;

    .line 7
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->n:Ljava/lang/String;

    .line 8
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/android/util/n0;->d(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x0

    .line 9
    invoke-virtual/range {v0 .. v5}, Lcom/estrongs/chromecast/ChromeCastManager;->loadMedia(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Les/uo;)V

    .line 10
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->G()V

    goto :goto_0

    .line 11
    :cond_2
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->t:Lcom/estrongs/chromecast/ChromeCastDialog;

    if-nez p1, :cond_3

    .line 12
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->K()V

    .line 13
    :cond_3
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->B()Z

    move-result p1

    if-eqz p1, :cond_4

    .line 14
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->Q()V

    .line 15
    :cond_4
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->t:Lcom/estrongs/chromecast/ChromeCastDialog;

    invoke-virtual {p1}, Lcom/estrongs/chromecast/ChromeCastDialog;->show()V

    :cond_5
    :goto_0
    return-void
.end method

.method static synthetic g(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->b0()V

    return-void
.end method

.method static synthetic h(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Z
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->O()Z

    move-result p0

    return p0
.end method

.method static synthetic i(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Z
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->P()Z

    move-result p0

    return p0
.end method

.method static synthetic j(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->O:Z

    return p0
.end method

.method static synthetic k(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->I()V

    return-void
.end method

.method static synthetic l(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Lcom/estrongs/chromecast/ChromeCastManager;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->s:Lcom/estrongs/chromecast/ChromeCastManager;

    return-object p0
.end method

.method static synthetic m(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Landroid/net/Uri;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->m:Landroid/net/Uri;

    return-object p0
.end method

.method static synthetic n(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->F()V

    return-void
.end method

.method static synthetic o(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->H()V

    return-void
.end method

.method static synthetic p(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Les/gz;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->J:Les/gz;

    return-object p0
.end method

.method static synthetic q(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->R()V

    return-void
.end method

.method static synthetic r(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->Z()V

    return-void
.end method

.method static synthetic s(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->w:Z

    return p0
.end method

.method static synthetic t(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Lcom/estrongs/fs/f;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->e:Lcom/estrongs/fs/f;

    return-object p0
.end method

.method static synthetic u(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Les/gz;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->W:Les/gz;

    return-object p0
.end method

.method static synthetic v(Lcom/estrongs/android/pop/app/PopVideoPlayer;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->r:I

    return p0
.end method

.method static synthetic w(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->a0()V

    return-void
.end method

.method static synthetic x(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Lcom/estrongs/chromecast/ChromeCastDialog;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->t:Lcom/estrongs/chromecast/ChromeCastDialog;

    return-object p0
.end method

.method static synthetic y(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->K()V

    return-void
.end method

.method static synthetic z(Lcom/estrongs/android/pop/app/PopVideoPlayer;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->v:Z

    return p0
.end method


# virtual methods
.method public A()V
    .locals 5

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->J:Les/gz;

    if-nez v0, :cond_0

    .line 3
    new-instance v0, Lcom/estrongs/android/pop/app/PopVideoPlayer$b;

    const/4 v1, 0x1

    invoke-direct {v0, p0, p0, v1, v1}, Lcom/estrongs/android/pop/app/PopVideoPlayer$b;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;Landroid/content/Context;ZZ)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->J:Les/gz;

    .line 4
    new-instance v0, Les/zy;

    invoke-direct {v0, p0, v1}, Les/zy;-><init>(Landroid/content/Context;Z)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->K:Les/zy;

    .line 5
    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->J:Les/gz;

    invoke-virtual {v1, v0}, Les/gz;->a(Les/zy;)V

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->J:Les/gz;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->K:Les/zy;

    invoke-virtual {v1}, Les/zy;->b()Landroid/view/View;

    move-result-object v1

    invoke-virtual {v0, v1}, Les/gz;->a(Landroid/view/View;)V

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->J:Les/gz;

    new-instance v1, Lcom/estrongs/android/pop/app/PopVideoPlayer$c;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer$c;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    invoke-virtual {v0, v1}, Les/gz;->a(Les/gz$d;)V

    .line 8
    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->v()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    const v1, 0x7f0602dd

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v0

    .line 9
    new-instance v1, Les/v00;

    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0809bc

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    invoke-static {v2, v0}, Les/fy;->a(Landroid/graphics/drawable/Drawable;I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    const v3, 0x7f11022f

    .line 10
    invoke-virtual {p0, v3}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v1, v2, v3}, Les/v00;-><init>(Landroid/graphics/drawable/Drawable;Ljava/lang/String;)V

    new-instance v2, Lcom/estrongs/android/pop/app/PopVideoPlayer$d;

    invoke-direct {v2, p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer$d;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    invoke-virtual {v1, v2}, Les/v00;->setOnMenuItemClickListener(Landroid/view/MenuItem$OnMenuItemClickListener;)Les/v00;

    iput-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->M:Les/v00;

    .line 11
    new-instance v1, Les/v00;

    .line 12
    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f080985

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    .line 13
    invoke-static {v2, v0}, Les/fy;->a(Landroid/graphics/drawable/Drawable;I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    const v4, 0x7f110232

    .line 14
    invoke-virtual {p0, v4}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v1, v2, v4}, Les/v00;-><init>(Landroid/graphics/drawable/Drawable;Ljava/lang/String;)V

    new-instance v2, Lcom/estrongs/android/pop/app/PopVideoPlayer$e;

    invoke-direct {v2, p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer$e;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    invoke-virtual {v1, v2}, Les/v00;->setOnMenuItemClickListener(Landroid/view/MenuItem$OnMenuItemClickListener;)Les/v00;

    iput-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->L:Les/v00;

    .line 15
    new-instance v1, Les/v00;

    .line 16
    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    .line 17
    invoke-static {v2, v0}, Les/fy;->a(Landroid/graphics/drawable/Drawable;I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    const v2, 0x7f11022c

    .line 18
    invoke-virtual {p0, v2}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v0, v2}, Les/v00;-><init>(Landroid/graphics/drawable/Drawable;Ljava/lang/String;)V

    new-instance v0, Lcom/estrongs/android/pop/app/PopVideoPlayer$f;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer$f;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    invoke-virtual {v1, v0}, Les/v00;->setOnMenuItemClickListener(Landroid/view/MenuItem$OnMenuItemClickListener;)Les/v00;

    iput-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->N:Les/v00;

    .line 19
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->K:Les/zy;

    invoke-virtual {v0}, Les/zy;->a()Les/kz;

    move-result-object v0

    .line 20
    invoke-virtual {v0}, Les/kz;->h()V

    .line 21
    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->N:Les/v00;

    invoke-virtual {v0, v1}, Les/kz;->a(Les/v00;)V

    .line 22
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->B()Z

    move-result v1

    if-nez v1, :cond_0

    iget-boolean v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->g:Z

    if-nez v1, :cond_0

    .line 23
    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->M:Les/v00;

    invoke-virtual {v0, v1}, Les/kz;->a(Les/v00;)V

    .line 24
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->J:Les/gz;

    invoke-virtual {v0}, Les/gz;->c()Z

    move-result v0

    if-nez v0, :cond_1

    .line 25
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->J:Les/gz;

    invoke-virtual {v0}, Les/gz;->d()V

    goto :goto_0

    .line 26
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->J:Les/gz;

    invoke-virtual {v0}, Les/gz;->a()V

    :goto_0
    return-void
.end method

.method public B()Z
    .locals 1

    .line 2
    iget v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->r:I

    if-nez v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public synthetic C()V
    .locals 4

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->n:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/videoeditor/j;->a(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->I:Ljava/util/ArrayList;

    const/4 v1, 0x0

    if-eqz v0, :cond_2

    .line 3
    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_2

    .line 4
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->J()I

    move-result v0

    const/4 v2, -0x1

    if-eq v0, v2, :cond_1

    .line 5
    iget-object v2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->I:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    const/4 v3, 0x1

    sub-int/2addr v2, v3

    if-ne v0, v2, :cond_0

    goto :goto_0

    .line 6
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->i:Lcom/estrongs/android/pop/esclasses/ESVideoController;

    invoke-virtual {v0, v3}, Lcom/estrongs/android/pop/esclasses/ESVideoController;->a(Z)V

    goto :goto_1

    .line 7
    :cond_1
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->i:Lcom/estrongs/android/pop/esclasses/ESVideoController;

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/esclasses/ESVideoController;->a(Z)V

    goto :goto_1

    .line 8
    :cond_2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->i:Lcom/estrongs/android/pop/esclasses/ESVideoController;

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/esclasses/ESVideoController;->a(Z)V

    :goto_1
    return-void
.end method

.method public synthetic D()V
    .locals 2

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->B:Lcom/estrongs/android/pop/app/videoeditor/k;

    new-instance v1, Lcom/estrongs/android/pop/app/g0;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/g0;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    invoke-virtual {v0, p0, v1}, Lcom/estrongs/android/pop/app/videoeditor/k;->a(Landroid/app/Activity;Lcom/estrongs/android/pop/app/videoeditor/k$b;)V

    return-void
.end method

.method public a(F)V
    .locals 1

    .line 45
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->f:Lcom/estrongs/android/ui/view/ESVideoView;

    invoke-virtual {v0, p1}, Lcom/estrongs/android/ui/view/ESVideoView;->setSpeed(F)V

    return-void
.end method

.method public synthetic a(Landroid/content/DialogInterface;)V
    .locals 0

    .line 42
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void
.end method

.method public synthetic a(Landroid/content/DialogInterface;I)V
    .locals 0

    .line 41
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void
.end method

.method public synthetic a(Landroid/media/MediaPlayer;)V
    .locals 0

    .line 24
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->b0()V

    return-void
.end method

.method public synthetic a(Landroid/view/View;)V
    .locals 1

    .line 23
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->d:Landroid/os/Handler;

    const/4 v0, 0x5

    invoke-virtual {p1, v0}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object p1

    invoke-virtual {p1}, Landroid/os/Message;->sendToTarget()V

    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 0

    .line 43
    invoke-static {p0, p1}, Lcom/estrongs/android/pop/app/videoeditor/h;->a(Landroid/app/Activity;Ljava/lang/String;)V

    .line 44
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void
.end method

.method public synthetic a(Landroid/media/MediaPlayer;II)Z
    .locals 2

    .line 25
    sget-object p1, Lcom/estrongs/android/pop/app/PopVideoPlayer;->k0:Ljava/lang/String;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "onError what "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string p2, " extra "

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-static {p1, p2}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 26
    iget-boolean p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->g:Z

    const/4 p2, 0x1

    if-eqz p1, :cond_0

    return p2

    .line 27
    :cond_0
    iput-boolean p2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->g:Z

    .line 28
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->B()Z

    move-result p1

    if-nez p1, :cond_1

    return p2

    .line 29
    :cond_1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->Y()Z

    move-result p1

    if-eqz p1, :cond_2

    .line 30
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return p2

    .line 31
    :cond_2
    new-instance p1, Lcom/estrongs/android/ui/dialog/q$n;

    invoke-direct {p1, p0}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    const p3, 0x7f110643

    invoke-virtual {p1, p3}, Lcom/estrongs/android/ui/dialog/q$n;->b(I)Lcom/estrongs/android/ui/dialog/q$n;

    const p3, 0x7f110642

    .line 32
    invoke-virtual {p1, p3}, Lcom/estrongs/android/ui/dialog/q$n;->a(I)Lcom/estrongs/android/ui/dialog/q$n;

    .line 33
    iget-boolean p3, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->o:Z

    if-nez p3, :cond_3

    invoke-static {}, Lcom/estrongs/chromecast/ChromeCastManager;->isSupport()Z

    move-result p3

    if-eqz p3, :cond_3

    const p3, 0x7f110045

    .line 34
    new-instance v0, Lcom/estrongs/android/pop/app/h0;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/h0;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    invoke-virtual {p1, p3, v0}, Lcom/estrongs/android/ui/dialog/q$n;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    const p3, 0x7f110235

    .line 35
    new-instance v0, Lcom/estrongs/android/pop/app/i0;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/i0;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    invoke-virtual {p1, p3, v0}, Lcom/estrongs/android/ui/dialog/q$n;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 36
    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/q$n;->c()Lcom/estrongs/android/ui/dialog/q;

    goto :goto_0

    :cond_3
    const p3, 0x7f11029e

    .line 37
    new-instance v0, Lcom/estrongs/android/pop/app/r;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/r;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    invoke-virtual {p1, p3, v0}, Lcom/estrongs/android/ui/dialog/q$n;->f(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 38
    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/q$n;->c()Lcom/estrongs/android/ui/dialog/q;

    .line 39
    :goto_0
    new-instance p3, Lcom/estrongs/android/pop/app/t;

    invoke-direct {p3, p0}, Lcom/estrongs/android/pop/app/t;-><init>(Lcom/estrongs/android/pop/app/PopVideoPlayer;)V

    invoke-virtual {p1, p3}, Lcom/estrongs/android/ui/dialog/q$n;->a(Landroid/content/DialogInterface$OnCancelListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 40
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->q:Landroid/view/View;

    const/16 p3, 0x8

    invoke-virtual {p1, p3}, Landroid/view/View;->setVisibility(I)V

    return p2
.end method

.method public b()V
    .locals 3

    .line 21
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->I:Ljava/util/ArrayList;

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_1

    .line 22
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->J()I

    move-result v0

    add-int/lit8 v0, v0, 0x1

    .line 23
    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->I:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    const/4 v2, 0x0

    if-ne v0, v1, :cond_0

    .line 24
    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->i:Lcom/estrongs/android/pop/esclasses/ESVideoController;

    invoke-virtual {v1, v2}, Lcom/estrongs/android/pop/esclasses/ESVideoController;->a(Z)V

    :cond_0
    if-lez v0, :cond_1

    .line 25
    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->I:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-ge v0, v1, :cond_1

    .line 26
    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->I:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/net/Uri;

    .line 27
    invoke-direct {p0, v0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->a(Landroid/net/Uri;)V

    .line 28
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->q:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    return-void

    :cond_1
    const v0, 0x7f110b45

    .line 29
    invoke-static {v0}, Lcom/estrongs/android/ui/view/d;->a(I)V

    return-void
.end method

.method public synthetic b(Landroid/media/MediaPlayer;)V
    .locals 1

    .line 7
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->q:Landroid/view/View;

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

    const/4 p1, 0x1

    .line 8
    iput-boolean p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->v:Z

    return-void
.end method

.method public b(Z)V
    .locals 0

    if-eqz p1, :cond_0

    .line 30
    invoke-virtual {p0}, Landroid/app/Activity;->getRequestedOrientation()I

    move-result p1

    iput p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->j0:I

    const/16 p1, 0xe

    .line 31
    invoke-virtual {p0, p1}, Landroid/app/Activity;->setRequestedOrientation(I)V

    goto :goto_0

    .line 32
    :cond_0
    iget p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->j0:I

    invoke-virtual {p0, p1}, Landroid/app/Activity;->setRequestedOrientation(I)V

    :goto_0
    return-void
.end method

.method public g()V
    .locals 0

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->I()V

    return-void
.end method

.method public j()V
    .locals 2

    .line 2
    iget v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->A:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    const/4 v0, 0x1

    .line 3
    invoke-virtual {p0, v0}, Landroid/app/Activity;->setRequestedOrientation(I)V

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    .line 4
    invoke-virtual {p0, v0}, Landroid/app/Activity;->setRequestedOrientation(I)V

    :goto_0
    return-void
.end method

.method public m()V
    .locals 0

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->onBackPressed()V

    return-void
.end method

.method public onBackPressed()V
    .locals 2

    .line 1
    iget v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->z:I

    iget v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->A:I

    if-eq v0, v1, :cond_0

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->j()V

    .line 3
    :cond_0
    invoke-super {p0}, Landroidx/activity/ComponentActivity;->onBackPressed()V

    return-void
.end method

.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
    .locals 1

    .line 1
    invoke-super {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onConfigurationChanged(Landroid/content/res/Configuration;)V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->i:Lcom/estrongs/android/pop/esclasses/ESVideoController;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Lcom/estrongs/android/pop/esclasses/f;->f()V

    .line 4
    :cond_0
    iget p1, p1, Landroid/content/res/Configuration;->orientation:I

    iput p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->A:I

    const/4 v0, 0x2

    if-ne p1, v0, :cond_1

    .line 5
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->X()V

    goto :goto_0

    .line 6
    :cond_1
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->B:Lcom/estrongs/android/pop/app/videoeditor/k;

    if-eqz p1, :cond_2

    .line 7
    invoke-virtual {p1}, Lcom/estrongs/android/pop/app/videoeditor/k;->a()Z

    :cond_2
    :goto_0
    return-void
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 3

    .line 1
    invoke-super {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onCreate(Landroid/os/Bundle;)V

    const/4 p1, 0x2

    .line 2
    invoke-virtual {p0, p1}, Landroid/app/Activity;->setDefaultKeyMode(I)V

    .line 3
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object p1

    const/16 v0, 0x7d0

    const/16 v1, 0x400

    invoke-virtual {p1, v0, v1}, Landroid/view/Window;->setFlags(II)V

    const p1, 0x7f0c02c5

    .line 4
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->setContentView(I)V

    .line 5
    iget-boolean p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->g:Z

    if-eqz p1, :cond_0

    return-void

    :cond_0
    const/4 p1, 0x0

    .line 6
    iput-boolean p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->R:Z

    .line 7
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "from_dlna"

    .line 8
    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->o:Z

    const-string v1, "Chromecast"

    .line 9
    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result p1

    iput-boolean p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->H:Z

    const-string p1, "es_from"

    .line 10
    invoke-virtual {v0, p1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->C:Ljava/lang/String;

    .line 11
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_1

    const-string p1, "unkown"

    .line 12
    iput-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->C:Ljava/lang/String;

    :cond_1
    const p1, 0x7f090d68

    .line 13
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/estrongs/android/pop/esclasses/ESVideoController;

    iput-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->i:Lcom/estrongs/android/pop/esclasses/ESVideoController;

    .line 14
    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->C:Ljava/lang/String;

    invoke-virtual {p1, v1}, Lcom/estrongs/android/pop/esclasses/ESVideoController;->setFrom(Ljava/lang/String;)V

    const p1, 0x7f090d63

    .line 15
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/estrongs/android/ui/view/ESVideoView;

    iput-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->f:Lcom/estrongs/android/ui/view/ESVideoView;

    const p1, 0x7f0901e6

    .line 16
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/FrameLayout;

    iput-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->h:Landroid/widget/FrameLayout;

    const p1, 0x7f0901e5

    .line 17
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->u:Landroid/widget/TextView;

    .line 18
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const v2, 0x7f110afe

    invoke-virtual {p0, v2}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const v2, 0x7f110233

    invoke-virtual {p0, v2}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const p1, 0x7f09071a

    .line 19
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->q:Landroid/view/View;

    .line 20
    invoke-virtual {v0}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object p1

    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->a(Landroid/net/Uri;)V

    .line 21
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->U()V

    .line 22
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->L()V

    .line 23
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->N()V

    .line 24
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->M()V

    .line 25
    invoke-direct {p0, v0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->b(Landroid/content/Intent;)V

    .line 26
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->C:Ljava/lang/String;

    const-string v0, "media_player_page"

    invoke-static {v0, p1}, Lcom/estrongs/android/statistics/c;->d(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public onDestroy()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->k:Lcom/estrongs/android/pop/app/PopVideoPlayer$u;

    if-eqz v0, :cond_0

    .line 2
    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->s:Lcom/estrongs/chromecast/ChromeCastManager;

    invoke-virtual {v1, v0}, Lcom/estrongs/chromecast/ChromeCastManager;->removeMediaPlayerListener(Lcom/estrongs/chromecast/RemoteMediaPlayerListener;)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->s:Lcom/estrongs/chromecast/ChromeCastManager;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->k:Lcom/estrongs/android/pop/app/PopVideoPlayer$u;

    invoke-virtual {v0, v1}, Lcom/estrongs/chromecast/ChromeCastManager;->removeConnectionListener(Lcom/estrongs/chromecast/ChromeCastConnectionListener;)V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->s:Lcom/estrongs/chromecast/ChromeCastManager;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->k:Lcom/estrongs/android/pop/app/PopVideoPlayer$u;

    invoke-virtual {v0, v1}, Lcom/estrongs/chromecast/ChromeCastManager;->removeDeviceListener(Lcom/estrongs/chromecast/CastDeviceListener;)V

    .line 5
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->t:Lcom/estrongs/chromecast/ChromeCastDialog;

    const/4 v1, 0x0

    if-eqz v0, :cond_1

    .line 6
    invoke-virtual {v0}, Lcom/estrongs/chromecast/ChromeCastDialog;->destory()V

    .line 7
    iput-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->t:Lcom/estrongs/chromecast/ChromeCastDialog;

    .line 8
    :cond_1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->E()V

    .line 9
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->c0()V

    .line 10
    invoke-static {}, Lcom/estrongs/android/dlna/c;->g()Lcom/estrongs/android/dlna/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/dlna/c;->f()V

    .line 11
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->d:Landroid/os/Handler;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacksAndMessages(Ljava/lang/Object;)V

    .line 12
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onDestroy()V

    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2

    const/4 v0, 0x1

    const/4 v1, 0x4

    if-ne p1, v1, :cond_0

    .line 1
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->O:Z

    .line 2
    iget-object v1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->B:Lcom/estrongs/android/pop/app/videoeditor/k;

    if-eqz v1, :cond_2

    invoke-virtual {v1}, Lcom/estrongs/android/pop/app/videoeditor/k;->a()Z

    move-result v1

    if-eqz v1, :cond_2

    return v0

    :cond_0
    const/16 v1, 0x52

    if-ne p1, v1, :cond_2

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->i:Lcom/estrongs/android/pop/esclasses/ESVideoController;

    invoke-virtual {p1}, Landroid/widget/FrameLayout;->isShown()Z

    move-result p1

    if-nez p1, :cond_1

    .line 4
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->W()V

    .line 5
    :cond_1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->I()V

    return v0

    .line 6
    :cond_2
    invoke-super {p0, p1, p2}, Landroidx/appcompat/app/AppCompatActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result p1

    return p1
.end method

.method public onPause()V
    .locals 0

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onPause()V

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->Q()V

    .line 3
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->V()V

    return-void
.end method

.method public onRestoreInstanceState(Landroid/os/Bundle;)V
    .locals 2

    const-string v0, "playback_position"

    const/4 v1, 0x0

    .line 1
    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I

    move-result p1

    iput p1, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->l:I

    return-void
.end method

.method public onResume()V
    .locals 0

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onResume()V

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->R()V

    return-void
.end method

.method public onSaveInstanceState(Landroid/os/Bundle;)V
    .locals 2

    .line 1
    invoke-super {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->onSaveInstanceState(Landroid/os/Bundle;)V

    .line 2
    iget v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->l:I

    const-string v1, "playback_position"

    invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    return-void
.end method

.method public onStop()V
    .locals 1

    .line 1
    invoke-super {p0}, Landroidx/appcompat/app/AppCompatActivity;->onStop()V

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->B()Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    .line 3
    :cond_0
    :try_start_0
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->b0()V

    const/4 v0, 0x1

    .line 4
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->P:Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method

.method public q()Z
    .locals 3

    .line 2
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->v:Z

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->q:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->f:Lcom/estrongs/android/ui/view/ESVideoView;

    iget-object v2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->m:Landroid/net/Uri;

    invoke-virtual {v0, v2}, Lcom/estrongs/android/ui/view/ESVideoView;->setVideoURI(Landroid/net/Uri;)V

    .line 5
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/PopVideoPlayer;->a0()V

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->f:Lcom/estrongs/android/ui/view/ESVideoView;

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/view/ESVideoView;->seekTo(I)V

    const/4 v0, 0x1

    return v0

    :cond_0
    return v1
.end method

.method public r()Landroid/graphics/Rect;
    .locals 8

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->i0:Landroid/graphics/Rect;

    if-nez v0, :cond_0

    .line 3
    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->i0:Landroid/graphics/Rect;

    const/4 v0, 0x2

    new-array v0, v0, [I

    const v1, 0x7f090784

    .line 4
    invoke-virtual {p0, v1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    .line 5
    invoke-virtual {v1, v0}, Landroid/view/View;->getLocationInWindow([I)V

    .line 6
    new-instance v2, Landroid/graphics/Rect;

    const/4 v3, 0x0

    aget v4, v0, v3

    const/4 v5, 0x1

    aget v6, v0, v5

    aget v3, v0, v3

    .line 7
    invoke-virtual {v1}, Landroid/view/View;->getMeasuredWidth()I

    move-result v7

    add-int/2addr v3, v7

    aget v0, v0, v5

    .line 8
    invoke-virtual {v1}, Landroid/view/View;->getMeasuredHeight()I

    move-result v1

    add-int/2addr v0, v1

    invoke-direct {v2, v4, v6, v3, v0}, Landroid/graphics/Rect;-><init>(IIII)V

    iput-object v2, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->i0:Landroid/graphics/Rect;

    .line 9
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/PopVideoPlayer;->i0:Landroid/graphics/Rect;

    return-object v0
.end method
